include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_SOURCE_DIR}/include/watchdog)

# catch要求打开异常
string(REGEX REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})

set(TEST 
    test.cc
    
    # watchdog/WatchdogTest.cc
    # testHttp/HttpAgentTest.cc
    watchdog/EtcdAgentTest.cc

)


add_executable(utest ${TEST})
add_dependencies(utest ndsl watchdog)
target_link_libraries(utest ndsl watchdog pthread)

# 包含test中的所有文件夹
# add_subdirectory(testclient)
# add_subdirectory(testserver)